<%-- 
    Document   : cadastroUsuario
    Created on : 17/08/2011, 21:47:54
    Author     : 200819049
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String msg = (String)request.getAttribute("MSG");
    if(msg==null){
        msg = "";
    }
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
            @import url(css/estilo.css);
        </style>
    </head>
    <body bgcolor="#feffff" style="background-image: url('/spe/img/back.gif'); margin: 0px">
        <center>
            <div align="center">
                <form name="formCadUsuario" id="formCadUsuario" action="LoginServlet" method="post" style="">
                    <fieldset style="width: 500px; height: 200px;">
                        <legend><b>Cadastro de Usuário</b></legend>
                        <table class="tableContent">
                            <tr>
                                <td>Login:</td>
                                <td><input type="text" name="LOGIN" class="input_text" value="" maxlength="45" style="width:250px" ></td>
                            </tr>
                            <tr>
                                <td>Senha:</td>
                                <td><input type="password" name="SENHA" class="input_text" value="" maxlength="45" style="width:120px" ></td>
                            </tr>
                            <tr>
                                <td>Nome:</td>
                                <td><input type="text" name="NOME" class="input_text" value="" maxlength="250" style="width:400px" ></td>
                            </tr>
                            <tr>
                                <td>Matrícula:</td>
                                <td><input type="text" name="MATRICULA" class="input_text" value="" maxlength="250" style="width:250px" ></td>
                            </tr>
                            <tr>
                                <td>Perfil:</td>
                                <td><select name="PERFIL" style="width: 250px" >
                                        <option selected value="S">Selecione</option>
                                        <option value="C">Coordenador</option>
                                        <option value="P">Professor</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <%= msg%><br>
                                                <input type="button" name="CONFIRMAR" value="Cadastrar" onClick="submeter()" style="font-weight: bolder" >
                                            </td>
                                            <td>
                                                <%= msg%><br>
                                                <input type="button" name="CANCELAR" value="Cancelar" onClick="" style="font-weight: bolder" >
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </form>
            </div>
        </center>
    </body>
</html>
